package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.StrDateDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 实时充电
 * @date 2021年7月29日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "realtime_charge")
@org.hibernate.annotations.Table(appliesTo = "realtime_charge",comment="pbtp-2-实时充电")
public class RealtimeCharge {
	@Column(columnDefinition="varchar(100) COMMENT '当年日均充电次数'")
	private String avgChargeNum;
	@Column(columnDefinition="varchar(100) COMMENT '当年日均充电量'")
	private String avgChargeCapacity;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计充电量'")
	private String accChargeCapacity;
	@Column(columnDefinition="varchar(100) COMMENT '充电桩总数'")
	private String chargerTotalNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日实时在线数'")
	private String chargerOnlineNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日实时在线率'")
	private String chargerOnlineRatio;
	@Column(columnDefinition="varchar(100) COMMENT '当日实时占用数'")
	private String chargerUsingNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日实时占用率'")
	private String chargerUsingRatio;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '业务统计时间'")
	@JsonDeserialize(using = StrDateDeserializer.class)
	private String createTime;
}

